/*
 * @Author: szx
 * @Date: 2023-03-30 13:37:18
 * @LastEditTime: 2023-03-30 13:39:08
 * @Description: 
 * @FilePath: \learn\fullstackopen\part4\index.js
 */
const app = require('./app') // the actual Express application
const http = require('http')
const config = require('./utils/config')
const logger = require('./utils/logger')

const server = http.createServer(app)

server.listen(config.PORT, () => {
    logger.info(`Server running on port ${config.PORT}`)
})